<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		$(".listtable").zebra();
		//指标修改历史列表
		$('#datagrid_quota_history').datagrid({
			url:'${pageContext.request.contextPath}/basemgr/kqiManagerAction!getAllHistoryKqiList.action',
			fit:true,
			border:false,
			fitColumns:true,
			pagination:true,
			pageList:[10,20,30],
			rownumbers:true,
			sortName:'modifytime',
			sortOrder:'desc',
			queryParams:{id:'${kqi.kqiid}'},
			columns:[[{field:'kqiid',title:'KQIID',hidden:true},
					{field:'kqiname',title:'指标名称',width:150,sortable:true},
					{field:'kqiversionnum',title:'版本号',width:80,sortable:true},
					{field:'periodtype',title:'指标周期',width:80,sortable:true},
					{field:'datalevel',title:'数据提取层',width:170,sortable:true},
					{field:'modifier',title:'修改者',width:80,sortable:true},
					{field:'modifytime',title:'修改时间',width:180,sortable:true}
					]]
		});
	});
		
</script>
<div class="easyui-layout" style="width: 100%;height: 100%">
	<form id="main_from" method="post">
	<input type="hidden" id="kqiid" name="kqiid" value="${kqi.kqiid}"/>
	<div data-options="region:'north'" style="overflow-y:hidden">
		<table border="0" cellpadding="0" cellspacing="0" height="100%"  width="100%" class="listtable">
		<tr>
			<td style="text-align:right;height:40px; width:15%;color:#398ece;font-weight:600"><span style="color:red;font-size:15px">*</span>指标名称：&nbsp;</td>
			<td style="height: 40px;width:45%;">${kqi.kqiname}</td>
			<td style="text-align:right;height:40px; width:15%;color:#398ece;font-weight:600"><span style="color:red;font-size:15px">*</span>指标周期类型：&nbsp;</td>
			<td style="height: 40px;width:25%;">${kqi.periodTypeName}</td>
		</tr>
		<tr>
			<td style="text-align:right;height:40px; width:15%;color:#398ece;font-weight:600;"><span style="color:red;font-size:15px">*</span>数据源：&nbsp;</td>
			<td style="height: 40px;width:45%;">${kqi.dataSourceName}</td>
			<td style="text-align:right;height:40px; width:15%;color:#398ece;font-weight:600;"><span style="color:red;font-size:15px">*</span>数据提取层：&nbsp;</td>
			<td style="height: 40px;width:25%;">${kqi.dataLevelName}</td>
		</tr>
		<tr>
			<td style="text-align:right;height:40px; width:15%;color:#398ece;font-weight:600;"><span style="color:red;font-size:15px">*</span>指标SQL脚本：&nbsp;</td>
			<td style="height:100px" colspan="3">
				<div style="width:90%;padding-top:7px;line-height: 15px;height:100px;margin:0px;">${kqi.kqisql}</div>
			</td>
		</tr>
		<tr>
			<td style="text-align:right;height:40px; width:15%;color:#398ece;font-weight:600;">备注：&nbsp;</td>
			<td colspan="3" style="height: 40px;">
				<div style="width:90%;padding-top:7px;line-height: 15px;height:60px;margin:0px;">${kqi.remark}</div>
			</td>
		</tr>
		<tr><td colspan="4"><div style="height: 4px"></div></td></tr>
		</table>
	</div>
	<div data-options="region:'center',title:'指标修改历史'">
		<div id="datagrid_quota_history"> </div>
	</div>
	</form>
 </div>